package com.shengyuan.manage_os.sqlite;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by Administrator on 2016/11/22.
 */

public class DBOpenHelp extends SQLiteOpenHelper {

    public DBOpenHelp(Context context){
        super(context,"OA_DATA",null,1);
    }
    @Override
    public void onCreate(SQLiteDatabase db) {

        db.execSQL("create table Department (id varchar(10),pid varchar(10),name varchar(10),mid varchar(10));");
        db.execSQL("create table Employee (id varchar(10),pid varchar(10),vid varchar(11),name varchar(10),hear_image binary,online boolean);");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
